package com.gitee.smalllog.core.write;

import java.io.IOException;

public interface SafeWriter {

	/**
	 * 写入日志内容
	 * @param cbuf
	 * @param off
	 * @param len
	 */
	void write(char[] cbuf, int off, int len);

	/**
	 * 发送数据
	 * @throws IOException
	 */
	void sendData() throws IOException;

	/**
	 * 是否有数据
	 * @return
	 */
	boolean hasPendingData();
}
